#include<stdio.h>
#include<stdlib.h>
#include <conio.h>
int main()
{
	int i,j,x=9,y=9;
	char input;
	int ny=10,is_fired=0,is_killed=0;

	
	while(1)
	{
		system("cls");

	

		if(is_fired==0)
	{

	for(i=1;i<x;i++)
		printf("\n");
		}
		else
		{
			for(i=1;i<x;i++)
			{
				for(j=1;j<y;j++)
				printf(" ");
			printf("  |\n");
		}
		if(y+2==ny)
			is_killed=1;
		is_fired=0;
		}

	for(i=1;i<x;i++)
		printf("\n");
	for(j=1;j<y;j++)
		printf(" ");
	printf("  *\n");
	for(j=1;j<y;j++)
	    printf(" ");
	printf("*****\n");
	for(j=1;j<y;j++)
	    printf(" ");
	printf(" * *\n");
		
	
	input=getch();

	if(input=='w')
		x=x-1;
	if(input=='s')
		x=x+1;
	if(input=='a')
		y=y-1;
	if(input=='d')
		y=y+1;
	is_fired=1;
	}
	
	return 0;
}
	

